Skip to content

FIX: Fix const qualifier errors with C23 string functions - #1055

Merged
jhpark816 merged 1 commit into
naver:developfrom
zhy2on:fix-strstr-error
Nov 19, 2026
Merged

jhpark816 merged 1 commit into
naver:developfrom
zhy2on:fix-strstr-error

Conversation

@zhy2on

@zhy2on zhy2on commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

🔗 Related Issue

⌨️ What I did

CI의 ubuntu-latest가 26.04로 바뀌면서 빌드가 실패합니다.

26.04의 gcc 15는 기본 표준이 C23이고, glibc 2.43은 C23에서 strstr/memchr에 const 문자열을 넘기면 const 포인터를 반환합니다.
그래서 결과를 char *로 받는 곳이 -Werror=discarded-qualifiers로 실패해, 아래와 같이 수정했습니다.

  • get_bkey_range_from_str, get_position_range_from_str: 문자열을 직접 수정하므로 인자를 char *로 바꿨습니다. 같은 파일의 get_list_range_from_str과 같은 형태입니다.
  • prefix_link, do_stats_prefix_insert, stats_prefix_find: token을 위치 계산에만 쓰므로 const char *로 바꿨습니다.

@zhy2on
zhy2on requested a review from jhpark816 November 19, 2026 06:14
@zhy2on zhy2on changed the title FIX: Fix const qualifier errors with C23 string functions FIX: Fix C23 build errors and pin CI to Ubuntu 24.04 Nov 19, 2026
@namsic

namsic commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

CI 버전 고정과 빌드 실패 수정은 별도 commit으로 분리하는 것이 낫겠습니다.

@zhy2on zhy2on changed the title FIX: Fix C23 build errors and pin CI to Ubuntu 24.04 FIX: Fix const qualifier errors with C23 string functions Nov 19, 2026
@jhpark816
jhpark816 merged commit 9bf3661 into naver:develop Nov 19, 2026
1 check passed
@zhy2on
zhy2on deleted the fix-strstr-error branch November 19, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants